package com.example.fooservice;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @author zhangjun3
 * @date 2022/3/5 00:54
 */
@FeignClient(value = "auth-service", path = "/auth")
public interface TokenVerifier {

    @GetMapping("/token/verify/{token}")
    ResponseEntity<Boolean> verifyToken(@PathVariable("token") String token);
}
